# def f(x):
# 	if x > 0:
# 		print(x)
# 		f(x - 1)
# 		print(x)
# f(3)

for i in range(1, 9999):
    a = 2024 * i
    if a % 1024 == 0:
        print(a)
        break